<div class="div-top">
    <span style="font-size: 20px;float:left;">{{menu_name}}</span>
    <div style="float:right;">
        <button ng-repeat="but in buttons" ng-click="operate(but.event)" class="btn btn-{{but.style}}"><i
                class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}
        </button>
    </div>
</div>

<form class="div-find form-inline">
    <div class="form-group">
        <label class="form-label">姓名：</label>
        <input ng-model="form.name" type="text" class="form-control" placeholder="学生姓名"/>
    </div>
    <div class="form-group">
        <label class="form-label">现在年级：</label>
        <select class="form-control" ng-options="grade.id as grade.name for grade in gradeList" ng-model="form.old_fk_grade"
                ng-change="findClass(0)">
            <option value="">==请选择==</option>
        </select>
    </div>
    <div class="form-group">
        <label class="form-label">现在班级：</label>
        <select class="form-control" ng-options="class.id as class.name for class in classList" ng-model="form.old_fk_class">
            <option value="">==请选择==</option>
        </select>
    </div>
    <div class="form-group">
        <label class="form-label">升入年级：</label>
        <select class="form-control" ng-options="grade.id as grade.name for grade in gradeList" ng-model="form.new_fk_grade"
                ng-change="findClass(1)">
            <option value="">==请选择==</option>
        </select>
    </div>
    <div class="form-group">
        <label class="form-label">升入班级：</label>
        <select class="form-control" ng-options="class.id as class.name for class in newClassList" ng-model="form.new_fk_class">
            <option value="">==请选择==</option>
        </select>
    </div>
    <div class="form-group">
        <label class="form-label">是否确认：</label>
        <select class="form-control" ng-model="form.is_affirm">
            <option value="">全部</option>
            <option value="0">未确认</option>
            <option value="1">已确认</option>
        </select>
    </div>
    <button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询
    </button>
</form>

<div class="div-table">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th class="table-th-checkbox"><input type="checkbox" ng-click="checkAll($event.target)"/></th>
            <th column="name" class="sorting" ng-click="order($event.target)">姓名</th>
            <th column="old_grade_sort" class="sorting" ng-click="order($event.target)">现在年级</th>
            <th column="old_class_sort" class="sorting" ng-click="order($event.target)">现在班级</th>
            <th column="new_grade_sort" class="sorting" ng-click="order($event.target)">升入年级</th>
            <th column="new_class_sort" class="sorting" ng-click="order($event.target)">升入班级</th>
            <th column="is_affirm">是否确认</th>
            <th column="update_time">修改时间</th>
        </tr>
        </thead>

        <tbody ng-switch on="page.current_num">
        <tr ng-switch-when="0">
            <td colspan="100">查询无记录</td>
        </tr>
        <tr ng-repeat="row in rows" ng-click="optData($event.currentTarget)">
            <td>
                <input type="checkbox" name="dataPk" value="{{row.id}}"/>
            </td>
            <td>{{row.name}}</td>
            <td>{{row.old_grade_name}}</td>
            <td>{{row.old_class_name}}</td>
            <td style="color: #0000ff;">{{row.new_grade_name}}</td>
            <td style="color: #0000ff;">{{row.new_class_name}}</td>
            <td>
                <div ng-switch="row.is_affirm">
                    <div ng-switch-when="0">未确认</div>
                    <div ng-switch-when="1" style="color: green">已确认</div>
                </div>
            </td>
            <td>{{row.update_time}}</td>
        </tr>
        </tbody>
    </table>
</div>
<div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page"></div>


